package com.example.park_management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.park_management.entity.MarketingCampaigns_wjs;
import org.apache.ibatis.annotations.*;

import java.util.List;

//@Mapper
public interface MarketingCampaignsMapper_wjs extends BaseMapper<MarketingCampaigns_wjs> {

//    @Select("select * from marketingcampaigns")
//    List<MarketingCampaigns_wjs> findMCall();
//
//    @Insert("insert into marketingcampaigns(ParkID,CampaignName,CampaignType,StartDate,EndDate,Budget) VALUES (#{ParkID},#{CampaignName},#{CampaignType},#{StartDate},#{EndDate},#{Budget})")
//    int insert(MarketingCampaigns_wjs marketingCampaignsWjs);
//
//    @Update("update marketingcampaigns set ParkID = #{ParkID}, CampaignName = #{CampaignName}, CampaignType=#{CampaignType}," +
//            "StartDate = #{StartDate}, EndDate = #{EndDate}, Budget=#{Budget} where CampaignID=#{CampaignID}")
//    Integer update(MarketingCampaigns_wjs marketingCampaignsWjs);
//
//    @Delete("delete from marketingcampaigns where CampaignID = #{CampaignID}")
//    Integer deleteByid(@Param("CampaignID") Integer id);
//
//    @Select("select * from marketingcampaigns limit #{pageNum}, #{pageSize}")
//    List<MarketingCampaigns_wjs> selectPage(Integer pageNum, Integer pageSize);
//
//    @Select("select count(*) from marketingcampaigns")
//    Integer seleteTitle();
}
